package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GwOperationAccountRoleMapper;
import com.ruoyi.system.domain.GwOperationAccountRole;
import com.ruoyi.system.service.IGwOperationAccountRoleService;

/**
 * 运营账号角色关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-08
 */
@Service
public class GwOperationAccountRoleServiceImpl implements IGwOperationAccountRoleService 
{
    @Autowired
    private GwOperationAccountRoleMapper gwOperationAccountRoleMapper;

    /**
     * 查询运营账号角色关联
     * 
     * @param accountId 运营账号角色关联主键
     * @return 运营账号角色关联
     */
    @Override
    public GwOperationAccountRole selectGwOperationAccountRoleByAccountId(String accountId)
    {
        return gwOperationAccountRoleMapper.selectGwOperationAccountRoleByAccountId(accountId);
    }

    /**
     * 查询运营账号角色关联列表
     * 
     * @param gwOperationAccountRole 运营账号角色关联
     * @return 运营账号角色关联
     */
    @Override
    public List<GwOperationAccountRole> selectGwOperationAccountRoleList(GwOperationAccountRole gwOperationAccountRole)
    {
        return gwOperationAccountRoleMapper.selectGwOperationAccountRoleList(gwOperationAccountRole);
    }

    /**
     * 新增运营账号角色关联
     * 
     * @param gwOperationAccountRole 运营账号角色关联
     * @return 结果
     */
    @Override
    public int insertGwOperationAccountRole(GwOperationAccountRole gwOperationAccountRole)
    {
        return gwOperationAccountRoleMapper.insertGwOperationAccountRole(gwOperationAccountRole);
    }

    /**
     * 修改运营账号角色关联
     * 
     * @param gwOperationAccountRole 运营账号角色关联
     * @return 结果
     */
    @Override
    public int updateGwOperationAccountRole(GwOperationAccountRole gwOperationAccountRole)
    {
        return gwOperationAccountRoleMapper.updateGwOperationAccountRole(gwOperationAccountRole);
    }

    /**
     * 批量删除运营账号角色关联
     * 
     * @param accountIds 需要删除的运营账号角色关联主键
     * @return 结果
     */
    @Override
    public int deleteGwOperationAccountRoleByAccountIds(String[] accountIds)
    {
        return gwOperationAccountRoleMapper.deleteGwOperationAccountRoleByAccountIds(accountIds);
    }

    /**
     * 删除运营账号角色关联信息
     * 
     * @param accountId 运营账号角色关联主键
     * @return 结果
     */
    @Override
    public int deleteGwOperationAccountRoleByAccountId(String accountId)
    {
        return gwOperationAccountRoleMapper.deleteGwOperationAccountRoleByAccountId(accountId);
    }
}
